/**
 * Created by user on 17/2/15.
 */
module.exports = {
    app: {
        name: 'node example',
        version: '1.0.0',
        domain: 'futunn.com'
    },
    server: {
        port: 3000
    },
    template: {
        path: 'server/views',
        options: {
            map: {html: 'ejs'}
        }
    },
    static_dir: {
        root: './static',
        options: {}
    },
    session: {
        key: 'futu.sid',
        prefix: 'futu:sess:',
        ttl: 20 * 60 * 1000
    },
    redis: {
        host: '127.0.0.1',
        port: 6379
    },
    i18n: {
        directory: './server/locales',
        locales: ['zh-hk']
    },
    mysql: {
        webAccount: {
            'host': '172.28.249.30',
            'port': 13357,
            'user': 'echo',
            'password': 'echo1234@123',
            'db': 'web_account',
            'logging': false,
            'dialect': 'mysql',
            'pool': {
                'max': 1,
                'min': 0,
                'idle': 30000
            }
        }
    }
};
